// 图标占位符文件
// 在实际开发中，请替换为真实的图标文件

export const iconPaths = {
  // 主页面图标
  festival: {
    normal: './img/festival_nor.png',
    active: './img/festival_act.png'
  },
  search: {
    normal: './img/search_nor.png',
    active: './img/search_act.png',
    icon: './img/search.png'
  },
  favorite: {
    normal: './img/favorite_nor.png',
    active: './img/favorite_act.png'
  },
  profile: {
    normal: './img/profile_nor.png',
    active: './img/profile_act.png'
  },

  // 详情页面图标
  heart: {
    empty: './img/heart_empty.png',
    filled: './img/heart_filled.png'
  },
  share: './img/share.png',


  // 通用图标
  delete: './img/delete.png',
  arrow: './img/arrow.png',
  emptyHeart: './img/empty_heart.png',
  defaultAvatar: './img/default_avatar.png',
  settings: './img/settings.png',
  about: './img/about.png'
};

// 默认图标（使用emoji作为占位符）
export const defaultIcons = {
  festival: '🏮',
  search: '🔍',
  favorite: '❤️',
  profile: '👤',
  heart: '💖',
  share: '📤',

  delete: '🗑️',
  arrow: '➡️',
  emptyHeart: '🤍',
  defaultAvatar: '👤',
  settings: '⚙️',
  about: 'ℹ️'
};

// 获取图标路径，如果不存在则返回默认图标
export function getIconPath(iconName, type = 'normal') {
  const iconConfig = iconPaths[iconName];
  if (iconConfig && typeof iconConfig === 'object') {
    return iconConfig[type] || iconConfig.normal;
  }
  return iconConfig || defaultIcons[iconName] || '📄';
} 